//
//  BKCMGetDataFromNetwork.h
//  bestkeep
//
//  Created by 毛韶谦 on 2017/1/16.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>

//数据返回信息
typedef void(^successBlock)(id obj);

typedef void(^failure)(NSString *error);


@interface BKCMGetDataFromNetwork : NSObject


/*
 获取购物车商品数量
 */

+(void)GetBuyCarAmountSuccess:(successBlock)success ErrorMessage:(void(^)(id obj))errorMessage failure:(void(^)(NSError *error))failure;

/*!
 @brief 获取购物车模型数组
 */
+(void)GetBuycarDataFromJsonSuccess:(void (^)(NSArray *bkModels))sucess failure:(failure)failure;

/*
 获取购物车推荐模型数组
 */

+(void)GetBuycarRecommendGoodsDataFromJsonSucessWithParamer:(NSString*)currentPage Success:(successBlock)sucess failure:(failure)failure;

/*
 修改商品信息
 */
+(void)editBuyCarGoodsFromJson:(NSString *)str success:(successBlock)success failure:(void(^)(NSError *error))failure;

/*
 删除商品信息
 */

+(void)deleteBuyCarGoods:(NSString *)str success:(successBlock)success failure:(void(^)(NSError *error))failure ;
/*
 移到收藏夹
 */
+(void)moveToSaveBuyCarGoods:(NSString *)str success:(successBlock)success failure:(void(^)(NSError *error))failure;

/*
 购物车结算前的校验
 */
+(void)SettlementCheckBuyCarGoods:(NSString *)str returnInformation:(successBlock)returnInformation failure:(void(^)(NSError *error))failure;



@end
